<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文字围绕浮动元素的妙用</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        .box{
            width: 500px;
            height: 130px;
            background-color: pink;
            margin: 100px auto;
            padding: 5px;
        }
        .pic{
            float: left;
            width: 225px;
            height: 130px;
            margin-right: 5px;
           
        }
        .pic img{
           width:  100%;
           height: 100%;
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="pic">
            <img src="images/img.webp" alt="">
        </div>
        <p>程序员自学成才指北-老程序员给新手的四条自学经验</p>
    </div>
</body>
</html>